<template>
  
    <nav-bar id="nav"
      title="APICLOUD"
      :left-arrow="left"
      @click-left="clickLeft"
      fixed
    />

</template>

<script>
import { NavBar } from "vant";
import apicloud from "@/libs/apicloud";

export default {
  name: "navbar",
  components: { NavBar },
  props: ["left", "right"],
  mounted() {
    // Should be at this time  
   // apicloud.fixStatusBar(apicloud.byId('nav'));
        // apicloud.fixTabBar();
        // apicloud.setStatusBarStyle({
        //     style: 'dark',
        //     color: '#6ab494'
        // });  
     apicloud.fixStatusBar(apicloud.dom("#nav")); // Fix the APP header bug
  },
  methods: {
    clickLeft() {
      this.$ac.closeWin({
        type: "reveal",
        subType: "from_left"
      });
    }
  }
};
</script>

<style>
   .van-nav-bar {
     /* height: auto !important; */
     background: #0f80fe;
     
  } 
  .van-nav-bar__title{
    color: white !important;
  }

</style>
